Skip to main content link. Accesskey S
  • Help
  • HCL Logo
  • HCL Lotus Expeditor wiki
  • THIS WIKI IS READ-ONLY. Individual names altered for privacy purposes.
  • HCL forums and blogs
  • Home
  • Product Documentation
  • Community Articles
Search
Community Articles > Expeditor Client for Desktop > Sample: Component Properties
  • Share Show Menu▼
  • Subscribe Show Menu▼

Recent articles by this author

Sample: Toolbar and Menu Contributions

Expeditor user interface team best practices on toolbar and menu contributions

Sample: Component Properties

OverviewComponent properties allow developers to create code that at compile time has specific function but accepts flexible input at runtime. For example, a developer can create a component that uses a predefined component property to update the title tab's text within a composite ...

Sample: Multiuser Features

Overview When multiple users share the same workstation, the configuration is referred to as a multiuser installation. This means that a single Expeditor client exists and is shared among all users; however, each user has their own workspace containing configuration details specific to that ...

Sample: Starting Plugins

Overview By default, Eclipse plugins are lazy. Lazy is the technical term (located in the bundle's manifest) that means that plugins are started when a request is either directly made by the Platform to start the plugin or indirectly through class loading. For example, the latter case implies ...

Sample: HTTP Communication

Overview The enhanced HTTP client in Expeditor allows developers to quickly create code that requests data from remote servers over HTTP or HTTPS. The enhanced client wraps the standard Java URLConnectionclasses such that authenticated requests leverage the Accounts framework and HTTPS ...
Community articleSample: Component Properties
Added by ~Tip Desachekli on October 26, 2011 | Version 1
  • Actions Show Menu▼
expanded Abstract
collapsed Abstract
No abstract provided.
Tags: samples
ShowTable of Contents
HideTable of Contents
  • 1 Overview
  • 2 Create the View
  • 3 Creating the Composite Application
  • 4 Updating the Component Properties

Overview

Component properties allow developers to create code that at compile time has specific function but accepts flexible input at runtime. For example, a developer can create a component that uses a predefined component property to update the title tab's text within a composite application. Composite application deployers and end users then have the flexibility to change application behavior simply by modifying the property during assembly.

Create the View

Begin by creating a simple view. The ViewPart code should read the com.ibm.rcp.title component property and set the ViewPart's name accordingly. The TopologyHandler and ComponentData types may be found in the com.ibm.pvc.sharedbundle plugin; be sure to add this to your required plugins list on the dependencies tab.

public void createPartControl(Composite parent) {
		TopologyHandler handler = TopologyHandlerServiceFactory.getService(); 
		if (handler == null) return;                                          
		                                                                      
		 String pref[] = null;                                                
		 String id = getViewSite( ).getSecondaryId( );                        
		id = id.replace('.', '_');                                            
		                                                                      
		 ComponentData cd = handler.getComponentData( id);                    
		 pref = cd.getPreference("com.ibm.rcp.title");                        
		 setPartName(pref[0]);                                                

	}


Creating the Composite Application


Create a new composite application using the File -> Application -> New Composite Application menu item. Add the view to a composite application by using the Add Component -> Locally Installed Components menu. If you do not see the view available in the component library, ensure the allowMuliple property is true in the view's extension.



Updating the Component Properties


Edit the component's properties to first update the title (available on the Component Settings tab). The title entered here is provided to components as the property com.ibm.rcp.title. Additionally, update the Advanced tab's property com.ibm.rcp.showTitle to true. This will show the tab such that we can see the title.



Save the composite application to view the updated title.






  • Actions Show Menu▼


expanded Attachments (0)
collapsed Attachments (0)
Edit the article to add or modify attachments.
expanded Versions (1)
collapsed Versions (1)
Version Comparison     
VersionDateChanged by              Summary of changes
This version (1)Oct 26, 2011, 7:40:59 PM~Tip Desachekli  
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedAbout
  • HCL Software
  • HCL Digital Solutions community
  • HCL Software Support
  • BlogsDigital Solutions blog
  • Community LinkHCL Software forums and blogs
  • About HCL Software
  • Privacy
  • Accessibility